﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HA.ModFlow.Application.Services
{
   public class AuthenticationService
    {
       protected AuthenticationService()
        {
 
        }

       static AuthenticationService _defaultService;

       public static AuthenticationService DefaultService
        {
            get {

                if (_defaultService ==null )
                {

                    _defaultService = new AuthenticationService();
                }

                return AuthenticationService._defaultService;
            
            }
          
        }



       public bool AuthenticationNetWork()
       {
           AustalSystem.NetWork.winLog win = new AustalSystem.NetWork.winLog();
           if (win.ShowDialog().Value)
           {
             
               return true;
               
           }
           else
           {
               return false;
           }
       }


    }
}
